<!-- ./skins/tpl/domains/add_domain.tpl begin -->
<?php echo getInfo($info); ?> 
<h2>Добавить домен</h2>
<form action="" method="post">  
Название:<br />
 <input class="caption" name="form[value2]" type="text" /><br /> 
Описание:<br />
 <textarea class="desc" name="form[value3]" ></textarea><br />
Поддомен:<br />
<select name="form[value4]">
	<option value="0" selected >Отдельный домен</option>
	<?if(!empty($permitted_domains)):?>
		<?foreach($permitted_domains as $pd_key => $p_d):?>
		<option value="<?=$p_d['pd_id']?>"><?=$p_d['pd_caption']?></option>
		<?endforeach?>
	<?endif?>
</select><br/>
<div>Cтрана: </div>
<div> 
	<select name="form[value5]" id="country" onchange="getList('region', 'country')" style="width:300px;">
	<option value="0" selected>---Не выбрана---</option>
	<?if(!empty($arr_countries)):?>
	<?foreach($arr_countries as $country):?>
		<option value="<?=$country['country_id']?>"><?=$country['country_name']?></option>
	<?endforeach?>
	<?endif?>
	</select>
	
</div>
<div>Регион:</div>
<div style="display: none" id="loading_region"><img alt="" src="/img/ajax_loader.gif" />Загрузка...</div>
<div>
	<select name="form[value6]" id="region" onchange="getList('city', 'region')" style="width:300px;">
		<option value="0" selected >---Не выбран---</option>
	</select>
</div>

<div>Город:</div>
<div style="display: none" id="loading_city"><img alt="" src="/img/ajax_loader.gif" />Загрузка...</div>
<div>
	<select name="form[value7]" id="city" style="width:300px;">
		<option value="0" selected>---Не выбран---</option>
	</select>
</div>	
<br/>
<input name="ok" type="submit" value="Добавить"><br />
<br />  
</form>
<!-- ./skins/tpl/domains/add_domain.tpl end -->
